package com.weilai.service.serviceImpl;

import com.weilai.dao.PrivateMessageDao;
import com.weilai.domain.PrivateMessage;
import com.weilai.service.PrivateMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PrivateMessageServiceImpl implements PrivateMessageService {

    @Autowired
    private PrivateMessageDao privateMessageDao;

    //查询发送者私信

    @Override
    public List<PrivateMessage> getAllMessages(String senderId, String receiverId) {
        return privateMessageDao.getAllMessages(senderId, receiverId);
    }
}
